package org.example.rtc.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.rtc.mapper.PatVitalInfoMapper;
import org.example.rtc.model.entity.PatVitalInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PatVitalInfoService extends ServiceImpl<PatVitalInfoMapper, PatVitalInfo> {

    public List<PatVitalInfo> getByPatId(String patId) {
        return  list(new LambdaQueryWrapper<PatVitalInfo>()
                .eq(PatVitalInfo::getPatId,patId)
        );
    }

}
